<%-- 
    Document   : XemVBDen
    Created on : Jun 10, 2011, 10:40:25 PM
    Author     : pdaitoan
--%>

<%@page import="java.text.SimpleDateFormat"%>
<%@page import="Entity.IDoc"%>
<%@page import="DataAccess.IDocAccess"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="js/ui.datepicker.js"></script>
    <link  type="text/css" rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"/>
    <style type="text/css">
        @import "../css/main.css";
        @import "../css/menu.css";
        @import "../menu/menu_style.css";
        @import "../css/VanBanDen.css";
        .ui-widget{font-size:0.7em;}
        .ui-helper-hidden-accessible{clip:auto;}
    </style>

        <script>
            $(function() {
                    $( "#datepicker" ).datepicker();
            });
	</script>
        <title>JSP Page</title>
    </head>
    <body>
        <%@include file="../header.jsp" %>
        <%
            Long ID = Long.parseLong(request.getParameter("ID"));
            IDocAccess idoc = new IDocAccess();
            IDoc entity = new IDoc();
            entity = idoc.getIDocByID(ID);
            SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
        %>
        <div id="vbd">Chi tiết văn bản đến        </div>
        <div id="vanbanden">
            <form name="form1" action="/idoc" method="post" id="form1">
                <input type="hidden" name="action" value=""/>
                    <table width="959" height="597" border="0" align="center" id="table">
                    <tbody>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td id="td7">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td id="td7">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td id="td7">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="95" height="32">Số văn bản đến</td>
                      <td width="168" id="td"><% out.print(entity.getPubNum()); %></td>
                      <td width="12">&nbsp;</td>
                      <td width="84">Số ghi sổ</td>
                      <td width="164" id="td"><% out.print(entity.getReceiveNum()); %></td>
                      <td width="11">&nbsp;</td>
                      <td width="105">Ngày đến</td>
                      <td width="286" id="td">
                      <%
                            out.print(df.format(entity.getReceiveDate()));
                          %>                      </td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td id="td2">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td id ="td2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="29">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>Trả lời VB số</td>
                      <td id="td"><% out.print(entity.getODocID()); %></td>
                      <td>&nbsp;</td>
                      <td>Ngày phát hành</td>
                      <td id ="td"><% out.print(df.format(entity.getPubDate())); %></td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td colspan="7" id="td3">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="68">Tựa đề</td>
                      <td colspan="7" id="td">
                      <%
                        out.print(entity.getSubject());
                      %>                      </td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td colspan="7" id="td4">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="123">Nội dung tóm tắt</td>
                      <td colspan="7" id="td">
                          <%
                            out.print(entity.getBriefContent());
                          %>                      </td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td colspan="7" id="td5">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="120">Ghi chú</td>
                      <td colspan="7" id="td">
                          <%
                            out.print(entity.getNotes());
                          %>                      </td>
                    </tr>
                    <tr>
                      <td height="16">&nbsp;</td>
                      <td colspan="3" id ="td6">&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="31">Người ký</td>
                      <td colspan="3" id ="td"><% out.print(entity.getSignByName()); %></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="34">Đã xử lý</td>
                      <td><% out.print(entity.getClosed()); %></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="34"><label>
                        <input type="button" name="button" id="button" value="Trở về" ONCLICK="history.go(-1)">
                      </label></td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                    </tbody>
                  </table>
          </form>
        </div>
</body>
</html>
